<#include "../header.ftl">
<html>
<body>

<#include "../nav-top.ftl">
<div class="sui-container" style="margin-top: 30px;">
    <ul class="sui-breadcrumb" style="padding: 0px 0px">
        <li><a href="#">个人中心</a></li>
        <li class="active">账号设置</li>
    </ul>
    <div class="sui-row-fluid">
        <div class="span1">
            <ul class="sui-nav nav-list nav-xlarge nav-user-type">
                <li class="active" data-type="0"><a>修改密码</a></li>
                <li data-type="1"><a>绑定</a></li>
            </ul>
        </div>
        <div class="span11" id="type-normal">
            <form id="form-password" class="sui-form form-horizontal" novalidate="novalidate">
                <div class="control-group">
                    <label for="password-old" class="control-label">原密码：</label>
                    <div class="controls">
                        <input class="input-xlarge input-fat" id="password-old" name="password-old" type="password"
                               data-rules="required|minlength=4|maxlength=16">
                    </div>
                </div>
                <div class="control-group">
                    <label for="password" class="control-label">新密码：</label>
                    <div class="controls">
                        <input class="input-xlarge input-fat" id="password" name="password" type="password"
                               data-rules="required|minlength=4|maxlength=16">
                    </div>
                </div>
                <div class="control-group">
                    <label for="repassword" class="control-label">确认密码：</label>
                    <div class="controls">
                        <input class="input-xlarge input-fat" id="repassword" name="repassword"
                               data-rules="required|match=password" type="password">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <button type="submit" class="sui-btn btn-primary btn-large update-password">提交</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="span11" id="type-delete" style="display: none">
            <form id="form-bind" class="sui-form form-horizontal" novalidate="novalidate">
                <div class="control-group">
                    <label for="password-old" class="control-label">已绑定邮箱：</label>
                    <div class="controls">
                        <input class="input-xlarge input-fat" type="text" readonly="readonly" value="${user.email}">
                    </div>
                </div>
                <div class="control-group">
                    <label for="email" class="control-label">绑定新邮箱：</label>
                    <div class="controls">
                        <input class="input-xlarge input-fat" id="email" name="email" type="email" data-rules="email">
                    </div>
                </div>
                <div class="control-group">
                    <label for="repassword" class="control-label">已绑定手机：</label>
                    <div class="controls">
                        <input class="input-xlarge input-fat" type="text" readonly="readonly" value="${user.mobil}">
                    </div>
                </div>
                <div class="control-group">
                    <label for="mobil" class="control-label">绑定新手机：</label>
                    <div class="controls">
                        <input class="input-xlarge input-fat" id="mobil" name="mobil" data-rules="mobile" type="tel">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <button type="submit" class="sui-btn btn-primary btn-large user-bind">提交</button>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>
<#include "../footer.ftl">
<script src="../../static/js/plugins/sea/sea.js"></script>
<script src="../../static/js/sea.config.js"></script>
<script>
    seajs.use('/static/js/game/system/user_set');

</script>
</body>
</html>
